const Mock = require('mockjs');
const querystring = require("querystring");

Mock.mock(_API_.login, function(res) {
  let data = querystring.parse(res.body)

  // 判断
  if (
    data.username == 'admin' &&
    data.password == '123456' &&
    data.security == '123456'
  ) {
    return {
      code: '1',
      username: data.username,
      password: data.password,
      '权限组': '开发中'
    }
  } else {
    return {
      code: 0,
      msg: _MSG_[100]
    }
  }



})